#include<stdio.h>
int main(int argc, char const *argv[])
{
    long i;
    int j;
    printf("input number:");
    scanf("%ld",&i);
    for(j=999;j>=100;j--)
    {
        if(i%j==0)
        {
            printf("The Max factor with 3 digits in %ld is:%d.\n",i,j);
            break;
        }
    }
    return 0;
}
